/**
 * 
 */
package com.miolr.module.core.dao;

import javax.inject.Named;

import com.miolr.core.dao.hibernate.HibernateGenericDao;
import com.miolr.module.core.model.User;

/**
 * @author iday
 *
 */
@Named
public class UserDao extends HibernateGenericDao<User> {

	public User findbyUsername(String username) {
		return this.findOne("from User where username=?", true, username);
	}

}
